]> dgit.raspbian.org Git - gnome-shell.git/commit
status/volume: Always look up device objects
authorFlorian Müllner <fmuellner@gnome.org>
Wed, 8 Nov 2023 18:41:18 +0000 (19:41 +0100)
committerMarge Bot <marge-bot@gnome.org>
Tue, 21 Nov 2023 18:50:46 +0000 (18:50 +0000)
commit7a04d92bc04e8add1b46b5da53239e53398ae958
tree4d572cca598309ffe32c18b59c23c28c900028e3
parent5b8347f90beed97e371a2d3b18dea99a8deeabb0
status/volume: Always look up device objects

Gvc may clean its device cache after we set up the device menu,
which can lead to failed assertions when using the "old" object
to later switch the device from a callback.

Make sure this doesn't happen by looking up the ID again from
the callback.

Closes: https://gitlab.gnome.org/GNOME/gnome-shell/-/issues/7173
Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/3011>
js/ui/status/volume.js